<div ng-controller="ResitemCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/resitem/list">{{'预约项目'| translate}}</a></li>
        <li class="active">
            添加
        </li>
    </ul>
    <form name="storeForm" novalidate ng-submit="saveData()">
        <div class="control-group">
            <label class="control-label v-top">{{'项目名称'|translate}}:</label>
            <div class="controls">
                <input ng-model="resitem.name" type="text" name="name" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'项目类型'|translate}}:</label>
            <div class="controls">
               <cat-tree ng-model="resitem.res_type_id" apitype="restypeGet" ></cat-tree>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'周期模板'|translate}}:</label>
            <div class="controls">
            <res-template-list ng-model="resitem.template_id" dft="1" ></res-template-list>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'desc'|translate}}:</label>
            <div class="controls">
                <ueditor ng-model="resitem.desc" uid="{{uid}}" style="width:694px"></ueditor>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'状态'|translate}}:</label>
            <div class="controls">
                <choice ng-model="resitem.status" dft='1'></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" class="sui-btn btn-primary" ng-disabled="!resitem.name">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>